package com.trkj.popj;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Data
public class Teacher {
    private int teaId;
    private String name;
    //@Autowired(required = false)//允许为空 该注解为spring框架的
    @Resource//不允许为空 该注解为jdk自带
    private Student student;//班长
}
